//
//  BKActionSheet.h
//  XPhoto
//
//  Created by baboy on 2019/5/31.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol BKActionSheetDelegate;
@interface BKActionSheet : UIView
@property(nonatomic, strong) UIView *backgroundView;
@property(nonatomic, strong) UIView *contentView;

- (id) initWithTitle:(NSString * _Nullable)title
               items:(NSArray *)items
            delegate:(id<BKActionSheetDelegate>)delegate
   cancelButtonTitle:(NSString *)cancelButtonTitle
destructiveButtonTitle:(NSString *_Nullable)destructiveButtonTitle;

- (id) initWithItems:(NSArray*)titles
             delegate:(nullable id<BKActionSheetDelegate>) delegate
    cancelButtonTitle:(nullable NSString *)cancelButtonTitle;
- (void)show;
@end

@protocol BKActionSheetDelegate <NSObject>

@optional
- (void)actionSheet:(BKActionSheet *)actionSheet  clickedButtonAtIndex:(NSInteger)buttonIndex data:(id)data;
- (void)actionSheetCanceled:(BKActionSheet *)actionSheet ;



@end
NS_ASSUME_NONNULL_END

